package dataImport.model;

public enum StaticRequirement {

	REQUIREOBJECT("requireObject"), REQUIRESTATE("requireState"), REQUIREPLACE("requirePlace");

	private String name;

	StaticRequirement(final String name) {
		this.name = name;
	}

	public static final boolean contains(final String staticRequirementName) {
		try {
			valueOf(staticRequirementName.toUpperCase());
		}
		catch (Exception e) {
			return false;
		}

		return true;
	}

	public static final StaticRequirement get(final String staticRequirementName) {
		return valueOf(staticRequirementName.toUpperCase());
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
